extends Node


var game_menu_screen: PackedScene = preload("res://scenes/ui/game_menu_screen.tscn")


func start_game():
	SceneManager.load_main_scene_container()
	SceneManager.load_level("Level1")
	SaveGameManager.load_game()
	SaveGameManager.allow_save_game = true


func exit_game():
	get_tree().quit()


func _unhandled_input(event: InputEvent) -> void:
	if event.is_action_pressed("game_menu"):
		show_game_menu_screen()


func show_game_menu_screen():
	var instance = game_menu_screen.instantiate()
	get_tree().root.add_child(instance)